#function: build CentOS6 sshd server
#parmeter:
#author: yeslf
#version: 1.0
#Test:

FROM 172.27.1.200:5000/lchub/lccentos6:base
MAINTAINER yeslf yeslf@xxx.com


#install sshd
RUN yum install -y  openssh-clients openssh-server ; echo "root:test123"|chpasswd; \
 mkdir -p /var/lock/subsys/sshd \
;service sshd start  


EXPOSE 22

CMD ["/usr/sbin/sshd","-D"]




